package pw.goyd.game.logic;

import pw.goyd.protocol.core.Serializer;

/**
 * 消息提示框
 *
 * @author StanWind
 */
public class MessageBoxResponse extends Serializer {
    private String message;
    //0正常消息 1回到登录界面
    private byte code = 0;

    public byte getCode() {
        return code;
    }

    public void setCode(byte code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    protected void read() {
        code = readByte();
        message = readString();

    }

    @Override
    protected void write() {
        writeByte(code);
        writeString(message);

    }


}
